package com.spring.oaassist.web.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

import com.spring.oaassist.web.model.Custom;
import com.spring.oaassist.web.requestModel.CourseTextbook;
import com.spring.security.web.model.BaseResult;
import com.sso.api.web.model.MemberInfo;
import com.sso.api.web.model.Users;
import com.sso.api.web.model.Family;
import com.sso.api.web.model.MemberCard;


public interface OaAssistService {
	List<Map<String,Object>> queryScheduler(Map<String,Object> m);
	
	List<Map<String,Object>> queryCustomerList(Map<String,Object> m);

	List<Map<String, Object>> queryCustomerServerList(Map<String, Object> parm);

	List<Map<String, Object>> queryCustomerSpace(Map<String, Object> parm);

	List<Map<String, Object>> queryClassCommont(Map<String, Object> parm);

	List<Map<String, Object>> queryPhotoList(Map<String, Object> parm);

	List<Map<String, Object>> queryVideoList(Map<String, Object> parm);

	List<Map<String, Object>> queryTextList(Map<String, Object> parm);

	List<Map<String, Object>> queryCourseInfoList(Map<String, Object> parm);

	List<Map<String, Object>> queryCourseStudentsList(Map<String, Object> parm);

	List<Map<String, Object>> queryCourseScheduler(Map<String, Object> parm);

	List<Map<String, Object>> queryMemberConsumeHis(Map<String, Object> parm);

	List<Map<String, Object>> queryUnMemberConsumeHis(Map<String, Object> parm);
	
	List<Map<String, Object>> queryUserInfo(Map<String, Object> parm);

	List<Map<String, Object>> queryBizCueByApplication(Map<String, Object> parm);

	List<Map<String, Object>> queryMenuZtree(Map<String, Object> parm);

	List<Map<String, Object>> queryRoleList(Map<String, Object> parm);
	
	List<Map<String, Object>> queryCommentList(Map<String, Object> parm) ;

	int saveRoleMenu(String roleid,String menuids);

	int saveMenu(String id, String pId, String name, String func_url,
			String func_order,String is_show);
	
	int deleteMenu(String id);

	List<Map<String, Object>> queryProduct(Map<String, Object> parm);

	void saveParkProduct(List<Map<String, Object>> checkedArr);

	String queryKidsParkByOaShopId(String shop_dept_id);

	List<Map<String, Object>> queryAssistUserInfo(Map<String, Object> parm);

	List<Map<String, Object>> querySsoUserInfo(Map<String, Object> parm);

	String saveAssistUserInfo(String assistantId, String assistantName,
			List<Map<String, Object>> checkedArr);

	void delAssistUserInfo(String c_user_id);
	
	List<Custom> getCustomList(Map<String, Object> parm);
	
	List<Users>  getUserByIDs(Map<String, Object> parm);
	
    List<Family> queryFamilyInfoByUserId(Map<String, Object> parm);
    
    List<MemberCard> queryMemberCardInfo(Map<String, Object> parm);
    
	int updateWorkSchedule(Map<String, Object> parm);

	int saveWorkSchedule(Map<String, Object> data);

	List<Map<String, Object>> queryCustCourseApply(Map<String, Object> parm);

	List<MemberInfo> checkMemberList(List<Map<String, Object>> list);

	List<Map<String, Object>> checkCustomerServerList(List<Map<String, Object>> list);

	
	Map<String, Object> reComment(String parentID, String toUserID, String toUserName, String toUserType,
    		String fromUserID, String fromUserName, String fromUserType, String serviceID, String businessTypeCode, 
    		String serviceModuleCode, String comment) throws Exception ;
	
	Map<String, Object> commentPhone(String comment, String course_image_id, String c_user_id, 
			String user_name) throws Exception ;
	 List<Map<String, Object>> getPhoneComment(String course_image_id) throws Exception;

	
	void removeParkProduct(String park_id,String product_id);
	
	List<Map<String, Object>> getVideoComment(String videoID) throws Exception;
	Map<String, Object> commentVideo(String comment, String videoID, String t_user_id) throws Exception ;

	List<HashMap<String, Object>> getUsersList(String c_user_id,String phone,
    		String real_name,String identity_card) throws Exception ;
	
	Map<String, Object> addPhoto(String formImgData, String c_user_id,HttpServletRequest request) throws Exception;
	
	HashMap<String, Object> getBabyList(String skip,
			String rows, String real_name,String phone) throws Exception ;
	List<Map<String, Object>> getAdmissionWay() throws Exception;
	
	int deleteScheduleByID(String scheduleID) ;
	
	List<Map<String, Object>> queryCourseTextbook(Map<String, Object> parm);
	
	BaseResult deleteCourseTextbook(String ids) throws Exception;
	BaseResult saveOrUpdateCourseTextbook(CourseTextbook ct) throws Exception ;
	
	BaseResult addUsers(MultipartFile file,HttpServletRequest request) throws Exception;
	BaseResult copyWorkSchedule(String fromTime,String toTime) throws Exception;
	BaseResult updateUser(String cid,String nickname,String englishName,HttpServletRequest request) throws Exception;
}
